Operation of hand prosthesis with direct nerve stimulation